package com.kgc.controller;

import com.kgc.pojo.PerformType;
import com.kgc.service.PerformTypeService;
import com.kgc.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class PerformTypeController {
    @Autowired
    PerformTypeService performTypeService;
    @RequestMapping("getPerformType_yuan")
    public Object getTicketType(){
        List<PerformType> performTypeList = performTypeService.getPerformType();
        return new Result(performTypeList,"获取商品分类成功");
    }
}
